package BookManager;
// 第二页

//通过一个Book对象，表示一个Book表中的记录
//与Book表中一一对应

public class Book {
    //书ID
    private int bookId;

    //书名
    private String name;

    //作者
    private String author;

    //价格
    private int price;

    //类型
    private String type;

    //状态
    private boolean isBorrowed;

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", type='" + type + '\'' +
                ", isBorrowed=" + isBorrowed +
                '}';
    }

    //1
    public int getBookId() {
        return bookId;
    }

    //2
    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    //3
    public String getName() {
        return name;
    }

    //4
    public void setName(String name) {
        this.name = name;
    }

    //5
    public String getAuthor() {
        return author;
    }

    //6
    public void setAuthor(String author) {
        this.author = author;
    }

    //7
    public int getPrice() {
        return price;
    }

    //8
    public void setPrice(int price) {
        this.price = price;
    }

    //9
    public String getType() {
        return type;
    }

    //10
    public void setType(String type) {
        this.type = type;
    }

    //11
    public boolean getIsBorrowed() {
        return isBorrowed;
    }

    //12
    public void setIsBorrowed(boolean isBorrowed) {
        this.isBorrowed = isBorrowed;
    }
}
